package ar.com.nexoweb.actualidadbasquet.utility;

import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;

public class Utility {
	public static String urlBoletines="http://www.nexoweb.com.ar/feed/";
	public static String urlInfoliga="http://www.infoliga.com.ar/feed/";
	public static String urlSuperbasquet="http://www.superbasquet.com/?feed=rss2";
	public static String urlBasquetrosario="http://feed43.com/basquetrosario.xml";
	

	
	/**
	 * Determine connectivity. a utility method to determine internet
	 * connectivity this is invokedbefore every web request
	 * 
	 * @param ctx
	 *            the ctx
	 * @return true, if successful
	 */
	public static boolean determineConnectivity(Context ctx) {
		ConnectivityManager manager = (ConnectivityManager) ctx
				.getSystemService(Context.CONNECTIVITY_SERVICE);
		NetworkInfo info = manager.getActiveNetworkInfo();
		return info != null && info.getState() == NetworkInfo.State.CONNECTED;
	}

}
